package com.sanji.springmvc.advice;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * 全局异常处理
 * Created by joe on 17-4-23.
 */
@ControllerAdvice
public class ExceptionHandlerAdvice {

  @ExceptionHandler(value = Exception.class)
  public String expection(){

    return "error";
  }
}
